package edu.hsbremen.teamscore.controller;

import android.widget.Button;

public class ChangeIntOnObject {

	
	public String countDown(Button obj){
		String score = obj.getText().toString();
		int scoreInt = Integer.parseInt(score);
		scoreInt--;
		String newScore = String.valueOf(scoreInt);
		return newScore;
	}
	
	public String countUp(Button obj){
		String score = obj.getText().toString();
		int scoreInt = Integer.parseInt(score);
		scoreInt++;
		String newScore = String.valueOf(scoreInt);
		return newScore;
	}
}